import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {ListComponent} from './list/list.component';
import {IndexsetComponent} from './indexset/indexset.component';
import {ChangepwdComponent} from './changepwd/changepwd.component';
import {ShowComponent} from './show/show.component';

const routes: Routes = [{
    path: '',
    pathMatch: 'full',
    redirectTo: 'list'
}, {
    path: 'list',
    component: ListComponent
}, {
    path: 'indexset',
    component: IndexsetComponent
}, {
    path: 'changepwd',
    component: ChangepwdComponent
}, {
    path: 'add',
    component: ShowComponent
}, {
    path: 'show/:id',
    component: ShowComponent
}
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class AdminRoutingModule {
}
